<template>
  <div>
    <!-- 这里是banner -->
    <mt-swipe :auto="3000">
        <!-- 谁用谁传轮播图的list -->
        <!-- 父组件传值 -->
      <mt-swipe-item v-for="(item,index) in BannerList" :key="index">
        <img :src="item.img" :class="{'full':isfull}">
      </mt-swipe-item>
    </mt-swipe>
  </div>
</template>

<script>
export default {
  data() {
      
    return {};
  },
  props:["BannerList","isfull"]
};
</script>

<style lang="scss" scoped>

.mint-swipe {
  height: 200px;

  .mint-swipe-item {
    text-align: center;
    
    img {
      width: 100%;
      height: 100%;
    }
  }
}

.full{
  width: 100%;
}
</style>
